package cn.tedu._05weibo.common.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatuCode {
    USERNAME_ERROR(1000,"用户名错误"),
    PASSWORD_ERROR(1001,"密码错误"),
    USERNAME_EXISTS(1002,"用户名已存在"),
    NOT_LOGIN(1003,"未登录"),
    OPERTION_SUCCESS(2001,"操作成功"),
    OPERTION_FAILED(2002,"操作失败"),
    THROWABLE_ERROR(6666,"ThrowAble未知异常"),
    VALIDATER_ERROR(8888,"Validate异常,参数校验失败");
    private Integer state;
    private String message;
}
